


<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="userProfile.title"/></title>
    <meta name="heading" content="<fmt:message key='userProfile.heading'/>"/>
    <meta name="menu" content="AdminMenu"/>
    <script type="text/javascript" src="<c:url value='/scripts/selectbox.js'/>"></script>

</head>

<div class="jquery_tab_container">
    <span class="heading_tab advanced_link active tab1"><fmt:message key="admin.institutions"/></span>
</div>

<div class="jquery_tab">
    <div class="content_block"> </div>
<form:form commandName="userInstitutionsForm" method="post" action="chooseindustry"  id="userInstitutionsForm">
<form:hidden path="user.id"/>



        <appfuse:label styleClass="desc" key="field.userName"/>
        <form:input disabled="true" path="user.username" id="name" cssClass="input-medium left" cssErrorClass="input-medium left error" style="background-color: #ccc;" maxlength="1000"/>
        <br /><br />

            <p class="left">
                <appfuse:label styleClass="width150" key="userInstitutionsForm.industry"/>
                <form:select path="industry.id" id="industrySelect">
                    <form:option id="1" value="">
                        <fmt:message key="industrySearch"/>
                    </form:option>
                    <c:forEach items="${userInstitutionsForm.industries}" var="industry">

                        <c:if test="${industry == userInstitutionsForm.industry}">
                            <form:option value="${industry.id}" id="${userInstitutionsForm.industry.id}" selected="true" >
                                ${industry.name}
                            </form:option>
                        </c:if>
                        <c:if test="${industry != userInstitutionsForm.industry}">
                            <form:option value="${industry.id}" id="${userInstitutionsForm.industry.id}" >
                                ${industry.name}
                            </form:option>
                        </c:if>
                    </c:forEach>
                </form:select>
            </p>
     
                    <br /><br class="clearboth" />





    <p class="buttonBar bottom left">
      <input type="submit" class="button" name="save" onclick="bCancel=false" value="<fmt:message key="button.save"/>"/>

     <input type="button" class="button" name="cancel" value="<fmt:message key="button.cancel"/>" onclick="location.href='<c:url value="/userinstitutionsearch"/>'"/>
    </p><br class="clearboth" />
 <p class="buttonBar bottom left">
     <display:table name="userInstitutionsForm.selectedInstitutions"  class="table left" requestURI="" id="selectedInstitutions" export="false" pagesize="25">

       
        <display:column property="institution.institutionName" sortable="true" titleKey="institution.institutionName"/>
        <display:setProperty name="paging.banner.item_name"><fmt:message key="workPosition.institutionName"/></display:setProperty>
        <display:setProperty name="paging.banner.items_name"><fmt:message key="codex.institutions"/></display:setProperty>

    </display:table>
</p>
</form:form>
</div>
<script type="text/javascript">
    Form.focusFirstElement($('userForm'));
    highlightFormElements();
</script>

<v:javascript formName="user" staticJavascript="false"/>
<script type="text/javascript" src="<c:url value="/scripts/validator.jsp"/>"></script>





